package com.xdh.springcloud.common.message;

public enum MessageCode {

    SUCCESS(1, "成功"),
    FAIL(-1, "失败");

    private int code;
    private String codeDetail;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    MessageCode(int code, String codeDetail) {
        this.code = code;
        this.codeDetail = codeDetail;
    }
}
